<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Optimist Racing: Grid2D&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Optimist Racing
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A video game where you must literally keep your head up</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_grid2_d.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_grid2_d-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Grid2D&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A 2d grid where each cell has a value.  
 <a href="class_grid2_d.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_grid_8hpp_source.html">Grid.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2d0de43afc44cfa9b1f85e2a89407987"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a2d0de43afc44cfa9b1f85e2a89407987">Grid2D</a> (double originX, double originY, int numCellsX, int numCellsY, double gridHX, double gridHY, T *values)</td></tr>
<tr class="memdesc:a2d0de43afc44cfa9b1f85e2a89407987"><td class="mdescLeft">&#160;</td><td class="mdescRight">Basic constructor.  <a href="#a2d0de43afc44cfa9b1f85e2a89407987"></a><br/></td></tr>
<tr class="separator:a2d0de43afc44cfa9b1f85e2a89407987"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882eef0c27a9c0dc379254633f6b4632"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a882eef0c27a9c0dc379254633f6b4632">~Grid2D</a> ()</td></tr>
<tr class="memdesc:a882eef0c27a9c0dc379254633f6b4632"><td class="mdescLeft">&#160;</td><td class="mdescRight">The destructor.  <a href="#a882eef0c27a9c0dc379254633f6b4632"></a><br/></td></tr>
<tr class="separator:a882eef0c27a9c0dc379254633f6b4632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a297945ebee6053b879eb2302fb997257"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a297945ebee6053b879eb2302fb997257">getOriginX</a> () const </td></tr>
<tr class="memdesc:a297945ebee6053b879eb2302fb997257"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the x-value of the origin of the grid (bottom-left corner).  <a href="#a297945ebee6053b879eb2302fb997257"></a><br/></td></tr>
<tr class="separator:a297945ebee6053b879eb2302fb997257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae84fe7442dccef0d49eedc65fe96b06a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#ae84fe7442dccef0d49eedc65fe96b06a">getOriginY</a> () const </td></tr>
<tr class="memdesc:ae84fe7442dccef0d49eedc65fe96b06a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the y-value of the origin of the grid (bottom-left corner).  <a href="#ae84fe7442dccef0d49eedc65fe96b06a"></a><br/></td></tr>
<tr class="separator:ae84fe7442dccef0d49eedc65fe96b06a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93655a3d92f6f98eeb6ec5826cd89249"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a93655a3d92f6f98eeb6ec5826cd89249">getGridHX</a> () const </td></tr>
<tr class="memdesc:a93655a3d92f6f98eeb6ec5826cd89249"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the x-spacing of the grid (the width of each cell).  <a href="#a93655a3d92f6f98eeb6ec5826cd89249"></a><br/></td></tr>
<tr class="separator:a93655a3d92f6f98eeb6ec5826cd89249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23b8af0f8e33c530bd1afbc5c77c50e2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a23b8af0f8e33c530bd1afbc5c77c50e2">getGridHY</a> () const </td></tr>
<tr class="memdesc:a23b8af0f8e33c530bd1afbc5c77c50e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the y-spacing of the grid (the height of each cell).  <a href="#a23b8af0f8e33c530bd1afbc5c77c50e2"></a><br/></td></tr>
<tr class="separator:a23b8af0f8e33c530bd1afbc5c77c50e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b6c57bd0364ec5ec86ac5adf84bcbc5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a2b6c57bd0364ec5ec86ac5adf84bcbc5">getNumCellsX</a> () const </td></tr>
<tr class="memdesc:a2b6c57bd0364ec5ec86ac5adf84bcbc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of cells across the x-direction.  <a href="#a2b6c57bd0364ec5ec86ac5adf84bcbc5"></a><br/></td></tr>
<tr class="separator:a2b6c57bd0364ec5ec86ac5adf84bcbc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa3fd3dbe8e175ae01bf51af3dac72bc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#aaa3fd3dbe8e175ae01bf51af3dac72bc">getNumCellsY</a> () const </td></tr>
<tr class="memdesc:aaa3fd3dbe8e175ae01bf51af3dac72bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of cells across the y-direction.  <a href="#aaa3fd3dbe8e175ae01bf51af3dac72bc"></a><br/></td></tr>
<tr class="separator:aaa3fd3dbe8e175ae01bf51af3dac72bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35171b27de35bf8ea47437e35a06ada7"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#a35171b27de35bf8ea47437e35a06ada7">getValue</a> (int i, int j, T defaultValue) const </td></tr>
<tr class="memdesc:a35171b27de35bf8ea47437e35a06ada7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value at the cell number [i,j].  <a href="#a35171b27de35bf8ea47437e35a06ada7"></a><br/></td></tr>
<tr class="separator:a35171b27de35bf8ea47437e35a06ada7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa40e58a8322d1abf80f7479cc86f7dda"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_grid2_d.html#aa40e58a8322d1abf80f7479cc86f7dda">getValue</a> (double x, double y, T defaultValue) const </td></tr>
<tr class="memdesc:aa40e58a8322d1abf80f7479cc86f7dda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value at the point (x,y) (takes into account grid spacing).  <a href="#aa40e58a8322d1abf80f7479cc86f7dda"></a><br/></td></tr>
<tr class="separator:aa40e58a8322d1abf80f7479cc86f7dda"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class Grid2D&lt; T &gt;</h3>

<p>A 2d grid where each cell has a value. </p>
<p>Represents a 2d grid with constant spacing (may be different for x and y) where each cell has a value. </p>
<dl class="section author"><dt>Author</dt><dd>Claude Richard </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2012 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2d0de43afc44cfa9b1f85e2a89407987"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::<a class="el" href="class_grid2_d.html">Grid2D</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>originX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>originY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numCellsX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numCellsY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>gridHX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>gridHY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>values</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Basic constructor. </p>
<p>In this constructor, everything about the grid is specified in the arguments. </p>
<dl class="section pre"><dt>Precondition</dt><dd>The values in the <em>values</em> array must be ordered as follows: (x1,y1), (x2,y1), (x3,y1), ... , (xm,yn). </dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>This object will represent a 2d grid, with origin (originX,originY), x-spacing gridHX, y-spacing gridHY, with numCellsX cells along the x-axis and numCellsY cells along the y-axis. The origin is the bottom-left corner of the grid. This object will not hold a pointer to <em>values</em>; it simply copies the array. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">originX</td><td>The origin's x-value, which is the smallest x-value on the grid. </td></tr>
    <tr><td class="paramname">originY</td><td>The origin's y-value, which is the smallest y-value on the grid. </td></tr>
    <tr><td class="paramname">numCellsX</td><td>The number of cells counting along the x-axis. </td></tr>
    <tr><td class="paramname">numCellsY</td><td>The number of cells counting along the y-axis. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">An</td><td>error if <em>values</em> has length smaller than <em>numCellsX</em> * <em>numCellsY</em>. An error if any of gridHX, gridHY, numCellsX, or numCellsY is &lt;= 0. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a882eef0c27a9c0dc379254633f6b4632"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::~<a class="el" href="class_grid2_d.html">Grid2D</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The destructor. </p>
<p>This destructor simply deletes its copy of the values array. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a93655a3d92f6f98eeb6ec5826cd89249"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getGridHX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the x-spacing of the grid (the width of each cell). </p>
<dl class="section return"><dt>Returns</dt><dd>The x-spacing of the grid (the width of each cell). </dd></dl>

</div>
</div>
<a class="anchor" id="a23b8af0f8e33c530bd1afbc5c77c50e2"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getGridHY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the y-spacing of the grid (the height of each cell). </p>
<dl class="section return"><dt>Returns</dt><dd>The y-spacing of the grid (the height of each cell). </dd></dl>

</div>
</div>
<a class="anchor" id="a2b6c57bd0364ec5ec86ac5adf84bcbc5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getNumCellsX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of cells across the x-direction. </p>
<dl class="section return"><dt>Returns</dt><dd>The number of cells across the x-direction. </dd></dl>

</div>
</div>
<a class="anchor" id="aaa3fd3dbe8e175ae01bf51af3dac72bc"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getNumCellsY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of cells across the y-direction. </p>
<dl class="section return"><dt>Returns</dt><dd>The number of cells across the y-direction. </dd></dl>

</div>
</div>
<a class="anchor" id="a297945ebee6053b879eb2302fb997257"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getOriginX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the x-value of the origin of the grid (bottom-left corner). </p>
<dl class="section return"><dt>Returns</dt><dd>The x-value of the origin of the grid (bottom-left corner). </dd></dl>

</div>
</div>
<a class="anchor" id="ae84fe7442dccef0d49eedc65fe96b06a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getOriginY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the y-value of the origin of the grid (bottom-left corner). </p>
<dl class="section return"><dt>Returns</dt><dd>The y-value of the origin of the grid (bottom-left corner). </dd></dl>

</div>
</div>
<a class="anchor" id="a35171b27de35bf8ea47437e35a06ada7"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getValue </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>defaultValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the value at the cell number [i,j]. </p>
<p>If i or j is off the grid, then returns the value of the closest cell. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The x-index of the cell (counting cells, not the x-value in the coordinate system). </td></tr>
    <tr><td class="paramname">j</td><td>The y-index of the cell (counting cells, not the y-value in the coordinate system). </td></tr>
    <tr><td class="paramname">defaultValue</td><td>The value to be returned if the cell-index [i,j] is outside the grid. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value at the cell number [i,j]. If i or j is off the grid, then returns <em>defaultValue</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="aa40e58a8322d1abf80f7479cc86f7dda"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="class_grid2_d.html">Grid2D</a>&lt; T &gt;::getValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>defaultValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the value at the point (x,y) (takes into account grid spacing). </p>
<p>If (x,y) is off the grid, then returns <em>defaultValue</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>The x-value of the point in the coordinate system. </td></tr>
    <tr><td class="paramname">y</td><td>The y-value of the point in the coordinate system. </td></tr>
    <tr><td class="paramname">defaultValue</td><td>The value to be returned if (x,y) is outside the grid. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the cell at (x,y). If (x,y) is off the grid, then returns <em>defaultValue</em>. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/Owner/My Programming/Personal Projects/VideoGames/Optimist Racing/src/<a class="el" href="_grid_8hpp_source.html">Grid.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_grid2_d.html">Grid2D</a></li>
    <li class="footer">Generated on Sun Oct 28 2012 13:14:38 for Optimist Racing by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
